package com.bwie.bargain.feign;

import com.bwie.bargain.vo.GoodsVo;
import com.bwie.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "user")
public interface GoodsFeign {
    /**
     * 信息
     */
    @RequestMapping("user/goods/info2/{gid}")
    GoodsVo info2(@PathVariable("gid") Long gid);
    @RequestMapping("user/goods/info/{gid}")
    R info(@PathVariable("gid") Long gid);

    @RequestMapping("user/goods/update")
    public R update2(@RequestBody GoodsVo goods);

}
